<template>
	<view>
		<uni-card>
			<view @click="dianji(index)">
				<view class=" user-box u-p-l-30 u-p-r-20 u-p-b-30 u-border-bottom u-padding-top-10"
					style="display: flex;">
					<view class="u-m-r-10">
						<u-avatar :src="base+item.doctor.avatar" size="100"></u-avatar>
					</view>
					<view class="u-flex-1">
						<view class="u-font-18 u-p-b-20">{{item.doctor.name}}</view>
						<view class="u-font-18 u-p-b-20">职称:{{item.doctor.jobName}}</view>
						<view class="u-font-18 u-p-b-20">执业编号:{{item.doctor.practiceNo}}</view>
						<view class="u-font-18 u-p-b-20">从业年限时间:{{item.doctor.workingYears}}</view>
						<view class="u-font-14 u-tips-color">咨询描述:{{item.question}}</view>
						
					</view>
				</view>
			</view>
			<uni-group title="问题图片">
				<image :src="base+item.imageUrls" style="width: 100%;"></image>
			</uni-group>
			<button type="primary" @click="tiwu">去追问</button>
		</uni-card>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				item:[]
			}
		},
		onLoad() {
			this.item = uni.getStorageSync('wen')
			console.log(this.item)
		},
		methods: {
			tiwu(){
				uni.setStorage({
					key:'wen',
					data:this.item.doctor,
					success: (res) => {
						uni.navigateTo({
							url:'wenz'
						})
					}
				})
			}
		}
	}
</script>

<style>

</style>
